package com.ys.entity.amazonorder;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_AmazonSellerReport", catalog="Id")
public class TpAmazonSellerReport extends BaseEntity<TpAmazonSellerReport> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="SellerId", nameJava="sellerId", typeDataBase="varchar")
	private String sellerId;
	@YsField(nameDataBase="ReportId", nameJava="reportId", typeDataBase="varchar")
	private String reportId;
	@YsField(nameDataBase="ReportDocumentId", nameJava="reportDocumentId", typeDataBase="varchar")
	private String reportDocumentId;
	@YsField(nameDataBase="RegionCode", nameJava="regionCode", typeDataBase="varchar")
	private String regionCode;
	@YsField(nameDataBase="LatestUpdateDayBegin", nameJava="latestUpdateDayBegin", typeDataBase="char")
	private String latestUpdateDayBegin;
	@YsField(nameDataBase="LatestUpdateDayEnd", nameJava="latestUpdateDayEnd", typeDataBase="char")
	private String latestUpdateDayEnd;
	@YsField(nameDataBase="State", nameJava="state", typeDataBase="tinyint")
	private Integer state;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAmazonSellerReport setId(Long id) {
		this.id = id;
		return this;
	}
	public String getSellerId() {
		return sellerId;
	}
	public TpAmazonSellerReport setSellerId(String sellerId) {
		this.sellerId = sellerId;
		return this;
	}
	public String getReportId() {
		return reportId;
	}
	public TpAmazonSellerReport setReportId(String reportId) {
		this.reportId = reportId;
		return this;
	}
	public String getReportDocumentId() {
		return reportDocumentId;
	}
	public TpAmazonSellerReport setReportDocumentId(String reportDocumentId) {
		this.reportDocumentId = reportDocumentId;
		return this;
	}
	public String getRegionCode() {
		return regionCode;
	}
	public TpAmazonSellerReport setRegionCode(String regionCode) {
		this.regionCode = regionCode;
		return this;
	}
	public String getLatestUpdateDayBegin() {
		return latestUpdateDayBegin;
	}
	public TpAmazonSellerReport setLatestUpdateDayBegin(String latestUpdateDayBegin) {
		this.latestUpdateDayBegin = latestUpdateDayBegin;
		return this;
	}
	public String getLatestUpdateDayEnd() {
		return latestUpdateDayEnd;
	}
	public TpAmazonSellerReport setLatestUpdateDayEnd(String latestUpdateDayEnd) {
		this.latestUpdateDayEnd = latestUpdateDayEnd;
		return this;
	}
	public Integer getState() {
		return state;
	}
	public TpAmazonSellerReport setState(Integer state) {
		this.state = state;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAmazonSellerReport setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAmazonSellerReport setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAmazonSellerReport setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAmazonSellerReport tpAmazonSellerReport(
		String sellerId,
		String reportId,
		String reportDocumentId,
		String regionCode,
		String latestUpdateDayBegin,
		String latestUpdateDayEnd,
		Integer state,
		Integer status
			) {
		TpAmazonSellerReport entity = new TpAmazonSellerReport();
		entity.setSellerId(sellerId);
		entity.setReportId(reportId);
		entity.setReportDocumentId(reportDocumentId);
		entity.setRegionCode(regionCode);
		entity.setLatestUpdateDayBegin(latestUpdateDayBegin);
		entity.setLatestUpdateDayEnd(latestUpdateDayEnd);
		entity.setState(state);
		entity.setStatus(status);
		return entity;
	}
}